home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / finderlaunch / mpwtool / makefile < prev   
Encoding:
Makefile  |  2000-06-23  |  2.3 KB  |  74 lines

  1. # File:        MakeFile
  2. #     
  3. #     Description: MPW make command file for generating build commands.  MPW build
  4. #            commands for a finder launch tool. 
  5. #     Author:        John Montbriand
  6. #     Copyright:     Copyright: © 1999 by Apple Computer, Inc.
  7. #                 all rights reserved.
  8. #     
  9. #     Disclaimer:    You may incorporate this sample code into your applications without
  10. #                 restriction, though the sample code has been provided "AS IS" and the
  11. #                 responsibility for its operation is 100% yours.  However, what you are
  12. #                 not permitted to do is to redistribute the source as "DSC Sample Code"
  13. #                 after having made changes. If you're going to re-distribute the source,
  14. #                 we require that you make it clear in the source that the code was
  15. #                 descended from Apple Sample Code, but that you've made changes.
  16. #     
  17. #     Change History (most recent first):
  18. #
  19. #      9/13/99 - created - JM
  20.  
  21. PPCObjects = :obj:FinderLaunch.c.ppc :obj:FinderLaunchTool.c.ppc
  22. M68kObjects = :obj:FinderLaunch.c.68k :obj:FinderLaunchTool.c.68k
  23.  
  24. CC68k = SC -align power -proto strict 
  25. CCppc  = MrC -w 35 -align power -proto strict 
  26.  
  27. RezFiles = FinderLaunchTool.r
  28. TargetFile = FinderLaunchTool
  29.  
  30. # resources
  31.  
  32. {TargetFile} ƒƒ {RezFiles} {M68kObjects}  {PPCObjects}
  33.     Rez -t "APPL" -i "{RIncludes}" -o {TargetFile} {RezFiles}
  34.  
  35. # object code
  36.  
  37. {TargetFile} ƒƒ {RezFiles} {M68kObjects}
  38.     Link -w -o {TargetFile} -t "MPST" -c 'MPS ' -sym off ∂
  39.         {M68kObjects} ∂
  40.         {CLibraries}StdCLib.o ∂
  41.         {Libraries}MathLib.o  ∂
  42.         {Libraries}Interface.o ∂
  43.         {Libraries}MacRuntime.o ∂
  44.         {Libraries}ToolLibs.o ∂
  45.         {Libraries}IntEnv.o
  46.  
  47. {TargetFile} ƒƒ {RezFiles} {PPCObjects}
  48.     PPCLink -t "MPST" -c 'MPS ' -o {TargetFile} ∂
  49.         {PPCObjects} ∂
  50.         {SharedLibraries}InterfaceLib ∂
  51.         {SharedLibraries}StdCLib ∂
  52.         {SharedLibraries}MathLib ∂
  53.         {PPCLibraries}PPCCRuntime.o ∂
  54.         {PPCLibraries}StdCRuntime.o ∂
  55.         {PPCLibraries}PPCToolLibs.o
  56.  
  57. # source code
  58.  
  59. :obj:FinderLaunch.c.ppc ƒ  FinderLaunch.c FinderLaunch.h
  60.     {CCppc} FinderLaunch.c -o :obj:FinderLaunch.c.ppc
  61.  
  62. :obj:FinderLaunch.c.68k ƒ  FinderLaunch.c FinderLaunch.h
  63.     {CC68k} FinderLaunch.c -o :obj:FinderLaunch.c.68k
  64.  
  65.  
  66. :obj:FinderLaunchTool.c.ppc ƒ  FinderLaunchTool.c FinderLaunch.h
  67.     {CCppc} FinderLaunchTool.c -o :obj:FinderLaunchTool.c.ppc
  68.  
  69. :obj:FinderLaunchTool.c.68k ƒ  FinderLaunchTool.c FinderLaunch.h
  70.     {CC68k} FinderLaunchTool.c -o :obj:FinderLaunchTool.c.68k
  71.